﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="ViewRequest.aspx.cs" Inherits="SWEN_HMS.StaffHousekeepingModule.ViewRequest" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:Label ID="viewReqLabel" runat="server"></asp:Label>
    <asp:GridView ID="viewReqGridView" runat="server" AutoGenerateColumns="False" DataKeyNames="requestID" OnRowDeleting="DeleteRequest" style="margin-bottom: 0px" Width="800px">
        <Columns>
            <asp:HyperLinkField DataNavigateUrlFields="requestID" DataNavigateUrlFormatString="~/StaffHousekeepingModule/UpdateRequest.aspx?reqID={0}" DataTextField="requestID" HeaderText="Request ID" SortExpression="requestID" />
            <asp:TemplateField HeaderText="Remarks">
                <ItemTemplate>
                    <%#Eval("requestRemarks") %>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Date/Time Of Request">
                <ItemTemplate>
                    <%#Eval("requestDateTime") %>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Room Number">
                <ItemTemplate>
                    <%#Eval("roomNo") %>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:CommandField ButtonType="Image" DeleteImageUrl="~/image/dustbin.png" HeaderText="Delete" ShowDeleteButton="true" />
        </Columns>
    </asp:GridView>
    Total No. of Requests:
    <asp:Label ID="reqCountLabel" runat="server"></asp:Label>
    <br />
    <asp:Button ID="addRequestBtn" runat="server" CssClass="btnCSS" OnClick="submitRequestBtn_Click" Text="Add a New Request" />
</asp:Content>
<asp:Content ID="Content5" runat="server" contentplaceholderid="pageTitlePHolder">
    <span class="auto-style1">View Customer Requests</span> 
</asp:Content>

